package com.zlx.guguanjia.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zlx.guguanjia.entity.Examine;
import com.zlx.guguanjia.mapper.ExamineMapper;
import com.zlx.guguanjia.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author 周罗校
 * @Description
 * @ClassName ExamineServiceImpl
 * @date 2020.10.27 15:34:45
 * 该版权归周罗校所有，最终解释权以官方为准
 */

@Service
@Transactional
public class ExamineServiceImpl extends BaseServiceImpl<Examine, Long> implements ExamineService {
    @Autowired
    private ExamineMapper mapper;

    @Override
    public PageInfo<Examine> selectPage(int start, int pageSize, Map<String, Object> map) {
        PageHelper.startPage(start, pageSize);
        return new PageInfo<Examine>(mapper.selectPage(map));
    }
}
